﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using Repository.Model;

namespace Repository.Repositories.Interfaces
{
    public interface IRepository<t> where t : BaseModel
    {
        t Insert(t obj);
        t Update(t obj);
        bool Delete(t obj);

        t Get(t obj);

        IEnumerable<t> GetAll();
        IEnumerable<t> GetList(Expression<Func<t, bool>> filter);
    }
}
